﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="dept.aspx.cs" Inherits="AppBox.admin.dept" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
    <ext:Panel ID="Panel1" runat="server" BodyPadding="5px" EnableLargeHeader="false"
        EnableBackgroundColor="true" ShowBorder="false" ShowHeader="false" Layout="Fit">
        <Items>
            <ext:Grid ID="Grid1" runat="server" ShowBorder="true" ShowHeader="false" EnableCheckBoxSelect="false"
                EnableRowNumber="true" DataKeyNames="Id" OnRowCommand="Grid1_RowCommand">
                <Toolbars>
                    <ext:Toolbar ID="Toolbar1" Position="Top" runat="server">
                        <Items>
                            <ext:ToolbarFill ID="ToolbarFill1" runat="server">
                            </ext:ToolbarFill>
                            <ext:Button ID="btnNew" runat="server" Icon="Add" EnablePostBack="false" Text="新增部门">
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </Toolbars>
                <Columns>
                    <ext:BoundField DataField="Name" HeaderText="部门名称" DataSimulateTreeLevelField="TreeLevel"
                        Width="150px" />
                    <ext:BoundField DataField="Remark" HeaderText="部门描述" ExpandUnusedSpace="true" />
                    <ext:BoundField DataField="SortIndex" HeaderText="排序" Width="80px" />
                    <ext:WindowField Text="编辑" WindowID="Window1" Title="编辑" DataIFrameUrlFields="Id"
                        DataIFrameUrlFormatString="~/admin/dept_edit.aspx?id={0}" Width="50px" />
                    <ext:LinkButtonField Text="删除" ConfirmText="确定删除此部门？" ConfirmTarget="Top" CommandName="Delete"
                        Width="50px" />
                </Columns>
            </ext:Grid>
        </Items>
    </ext:Panel>
    <ext:Window ID="Window1" runat="server" IsModal="true" Hidden="true" Target="Parent"
        EnableIFrame="true" IFrameUrl="about:blank" Width="600px" Height="400px" OnClose="Window1_Close">
    </ext:Window>
    </form>
</body>
</html>
